{extend name="public:base" }
{block name="seo"}
	{Data:article name="Article" var="vo" id="$id" /}
	<?php $page_title = $vo['title'];?>
    {include file="public:seo"/}
{/block}
{block name="body"}
	<pjax>
        <article class="post read" data-id="{$vo.id}">
            <h2 class="title">{$vo.title}</h2>
            <div class="entry-meta">
                <i class="fa fa-calendar"></i>
                最后更新
                <a href="/{$vo.id}.html" pjax rel="bookmark">
                    <time datetime="{$vo.update_time|date='Y-m-d H:i:s'}">{$vo.update_time|date='Y-m-d H:i:s'}</time>
                </a>
            </div>
            <div class="content">{$vo.content|raw}</div>
            <footer class="entry-meta tags">
				<label><i class="fa fa-folder-open-o"></i>标签</label>
                <div class="info">
					<div class="c">						
						<?php
						if(!empty($vo['tags'])){
							$tags=explode(',',$vo['tags']);
							$tagstr=array();
							foreach ($tags as $k => $v) {
								$tagstr[]='<a rel="tag-link" pjax href="/Tag/'.$v.'.html"><i class="fa fa-tags"></i>'.$v.'</a>';
							}
							echo implode('、',$tagstr);
						}
						?>。 
					</div>
				</div>
				<div class="cf"></div>
            </footer>
			<div class="addon">
				<button class="like" data-id="{$vo.id}">喜欢</button>
				<a class="dashang" href="/Pay.html?id={$vo.id}" target="_blank">打赏</a>
			</div>
            {include file="public:card" /}
        </article>
		<!--iframe src="/Article/comment.html?id={$vo.id}" frameborder="0" width="100%" id="commentFrame"></iframe-->
	</pjax>
{/block}